package com.lch.mp.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-03-25
 */
//@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("emp")
public class Emp implements Serializable {

    //private static final long serialVersionUID = 1L;

    @TableId(value = "empno", type = IdType.AUTO)
    private Integer empno;

    private String ename;

    private Integer sal;

    private LocalDate hiredate;


    private Integer deptID;


    public Emp() {
    }

    public Emp(Integer empno, String ename, Integer sal, LocalDate hiredate, Integer deptID) {
        this.empno = empno;
        this.ename = ename;
        this.sal = sal;
        this.hiredate = hiredate;
        this.deptID = deptID;
    }

    /**
     * 获取
     * @return empno
     */
    public Integer getEmpno() {
        return empno;
    }

    /**
     * 设置
     * @param empno
     */
    public void setEmpno(Integer empno) {
        this.empno = empno;
    }

    /**
     * 获取
     * @return ename
     */
    public String getEname() {
        return ename;
    }

    /**
     * 设置
     * @param ename
     */
    public void setEname(String ename) {
        this.ename = ename;
    }

    /**
     * 获取
     * @return sal
     */
    public Integer getSal() {
        return sal;
    }

    /**
     * 设置
     * @param sal
     */
    public void setSal(Integer sal) {
        this.sal = sal;
    }

    /**
     * 获取
     * @return hiredate
     */
    public LocalDate getHiredate() {
        return hiredate;
    }

    /**
     * 设置
     * @param hiredate
     */
    public void setHiredate(LocalDate hiredate) {
        this.hiredate = hiredate;
    }

    /**
     * 获取
     * @return deptID
     */
    public Integer getDeptID() {
        return deptID;
    }

    /**
     * 设置
     * @param deptID
     */
    public void setDeptID(Integer deptID) {
        this.deptID = deptID;
    }

    public String toString() {
        return "Emp{empno = " + empno + ", ename = " + ename + ", sal = " + sal + ", hiredate = " + hiredate + ", deptID = " + deptID + "}";
    }
}
